import request from '@/utils/request'
// 获取所有订单信息
export const getReservationAPI = ({ page, pageSize }) => {
  return request({
    method: 'GET',
    url: `/api/reservation?page=${page}&pageSize=${pageSize}`
  })
}
// 不带参数获取所有订单信息
export const getAllReservationAPI = () => {
  return request({
    method: 'GET',
    url: '/api/reservation'
  })
}
// 通过订单编号修改订单信息
export const updateReservationAPI = (orderID, data) => {
  return request({
    method: 'put',
    url: `/api/reservation/${orderID}`,
    data
  })
}
// 通过订单编号删除订单
